﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CobroCaja.aspx.cs" Inherits="WebApplication3.CobroCaja" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #form1
        {
            width: 776px;
            height: 490px;
        }
        #form2
        {
            width: 261px;
        }
        .style1
        {
            width: 938px;
            height: 507px;
            margin-right: 166px;
        }
        .style2
        {
            width: 398px;
            height: 272px;
        }
        .style3
        {
            width: 890px;
            height: 508px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" class="style1">
    <div class="style3">
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" DataSourceID="Inventario" EnableModelValidation="True" 
            GridLines="Vertical" Height="80px" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" Width="58px">
            <AlternatingRowStyle BackColor="Gainsboro" />
            <Columns>
                <asp:BoundField HeaderText="IdProducto" DataField="IdProducto" 
                    InsertVisible="False" SortExpression="IdProducto" />
                <asp:BoundField HeaderText="Nombre" DataField="Nombre" 
                    SortExpression="Nombre" />
                <asp:BoundField HeaderText="Cant" DataField="Cant" SortExpression="Cant" />
                <asp:BoundField HeaderText="Precio" DataField="Precio" 
                    SortExpression="Precio" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    
        <div style="margin-left: 376px; margin-top: 0px" class="style2">
    





            <asp:Button ID="BtnComprar" runat="server" Text="Comprar" 
                onclick="BtnComprar_Click_Click" />
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" Text="Clave:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtClave" runat="server" ontextchanged="txtClave_TextChanged"></asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Total:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtTotal" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Pago:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtPago" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label4" runat="server" Text="Cambio:"></asp:Label>
&nbsp;
            <asp:TextBox ID="txtCambio" runat="server"></asp:TextBox>
            <br />
            <br />
            <br />
            <asp:Button ID="BtnCompraTot" runat="server" Text="Compra Total" 
                onclick="BtnCompraTot_Click_Click" />
            <br />
            <br />
            <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
    
    </div>
        <asp:SqlDataSource ID="Inventario" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
            SelectCommand="SELECT IdProducto, Nombre, Cant, Precio FROM producto"></asp:SqlDataSource>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
        </div>
    </form>
</body>
</html>
